using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using BUS;
public partial class Admin_KhachHangAdd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_Add_Click(object sender, EventArgs e)
    {
        tbKhachHang khachhang = new tbKhachHang();
        khachhang.HoTen = txt_TenKH.Text;
        khachhang .Email =txt_Email .Text ;
        khachhang.MatKhau = txt_MatKhau.Text;
        khachhang.DiaChi = txt_DiaChi.Text;
        khachhang.DienThoai = txt_DienThoai.Text;
        tbKhachHangBUS.Insert(khachhang);
        Response.Redirect("~/Admin/KhachHangList.aspx");
    }
}
